import request from '@/utils/request'

// 获取仪表板统计数据
export function getDashboardStats() {
  return request({
    url: '/api/v1/dashboard/stats',
    method: 'get'
  })
}

// 获取用户活动数据
export function getUserActivity(params) {
  return request({
    url: '/api/v1/dashboard/user-activity',
    method: 'get',
    params
  })
}

// 获取系统信息
export function getSystemInfo() {
  return request({
    url: '/api/v1/dashboard/system-info',
    method: 'get'
  })
}

// 获取最近操作日志
export function getRecentLogs(params) {
  return request({
    url: '/api/v1/dashboard/recent-logs',
    method: 'get',
    params
  })
}
